package com.gs.xbinfomytest.entity.dsl;

import com.gitee.hengboy.mybatis.enhance.dsl.expression.ColumnExpression;
import com.gitee.hengboy.mybatis.enhance.dsl.expression.TableExpression;
import com.gs.xbinfomytest.entity.SysUserOnline;

/**
 * 在线用户记录
 * @author ApiBoot Mybatis Enhance Codegen
 */
public class DSysUserOnline extends TableExpression<SysUserOnline> {

    public DSysUserOnline(String root) {
        super(root);
    }

    public static DSysUserOnline DSL() {
        return new DSysUserOnline("sys_user_online");
    }

    /**
     * 用户会话id
     */
    public ColumnExpression sessionid = new ColumnExpression("sessionId", this);
    /**
     * 登录账号
     */
    public ColumnExpression loginName = new ColumnExpression("login_name", this);
    /**
     * 部门名称
     */
    public ColumnExpression deptName = new ColumnExpression("dept_name", this);
    /**
     * 登录IP地址
     */
    public ColumnExpression ipaddr = new ColumnExpression("ipaddr", this);
    /**
     * 登录地点
     */
    public ColumnExpression loginLocation = new ColumnExpression("login_location", this);
    /**
     * 浏览器类型
     */
    public ColumnExpression browser = new ColumnExpression("browser", this);
    /**
     * 操作系统
     */
    public ColumnExpression os = new ColumnExpression("os", this);
    /**
     * 在线状态on_line在线off_line离线
     */
    public ColumnExpression status = new ColumnExpression("status", this);
    /**
     * session创建时间
     */
    public ColumnExpression startTimestamp = new ColumnExpression("start_timestamp", this);
    /**
     * session最后访问时间
     */
    public ColumnExpression lastAccessTime = new ColumnExpression("last_access_time", this);
    /**
     * 超时时间，单位为分钟
     */
    public ColumnExpression expireTime = new ColumnExpression("expire_time", this);
    @Override
    public ColumnExpression[] getColumns() {
        return new ColumnExpression[]{sessionid, loginName, deptName, ipaddr, loginLocation, browser, os, status, startTimestamp, lastAccessTime, expireTime};
    }

}

